package com.codejie.pms.service.impl;

import com.codejie.pms.entity.Customer;
import com.codejie.pms.entity.Staff;
import com.codejie.pms.entity.StaffKpi;
import com.codejie.pms.mapper.CustomerMapper;
import com.codejie.pms.mapper.StaffMapper;
import com.codejie.pms.service.StaffService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class StaffServicelmpl implements StaffService {
    @Resource
    private StaffMapper staffMapper;

    @Override
    public void addStaff(Staff staff) {
        staffMapper.addStaff(staff);
    }

    @Override
    public void updateStaff(Staff staff) {
        staffMapper.updateStaff(staff);
    }

    @Override
    public void deleteStaff(String staffId) {
        staffMapper.deleteStaff(staffId);
    }

    @Override
    public Staff getStaff(String staffId) {
        return staffMapper.getStaff(staffId);
    }

    @Override
    public List<Staff> selectStaffList() {
        return staffMapper.selectStaffList();
    }

    @Override
    public void calculateKpiWages(Staff staff){
        staffMapper.calculateKpiWages(staff);
    }
}
